package com.ruyuan.eshop.construction.api;

import com.ruyuan.eshop.common.core.JsonResult;
import com.ruyuan.eshop.common.core.PageResult;
import com.ruyuan.eshop.construction.domain.dto.ProducingAreaDTO;
import com.ruyuan.eshop.construction.domain.dto.ProducingAreaResultDTO;
import com.ruyuan.eshop.construction.domain.request.ProducingAreaRequest;
import com.ruyuan.eshop.construction.domain.request.QueryProducingAreaRequest;

/**
 * 产地服务接口
 *
 * @author zhonghuashishan
 */
public interface ProducingAreaApi {

    /**
     * 新增/编辑产地接口
     *
     * @param request
     * @return com.ruyuan.eshop.common.core.JsonResult<com.ruyuan.eshop.construction.domain.dto.ProducingAreaResultDTO>
     * @author zhonghuashishan
     */
    JsonResult<ProducingAreaResultDTO> producingArea(ProducingAreaRequest request);

    /**
     * 查询产地信息
     *
     * @param request
     * @return com.ruyuan.eshop.common.core.JsonResult<com.ruyuan.eshop.common.core.PageResult<com.ruyuan.eshop.construction.domain.dto.ProducingAreaDTO>>
     * @author zhonghuashishan
     */
    JsonResult<PageResult<ProducingAreaDTO>> getProducingArea(QueryProducingAreaRequest request);

}
